const loginConfig = [
  {
    label: "用户号",
    type: "input",
    prop: "userName",
    icon: "avator"
  },
  {
    label: "密码",
    type: "password",
    prop: "password",
    icon: `<el-button>22</el-button>`
  },
  {
    label: "确认密码",
    type: "password",
    prop: "checkPassword",
    icon: `<el-button>22</el-button>`
  }
]

const loginRules = {
  userName: [
    {
      required: true,
      message: "请输入您的用户名",
      trigger: "blur"
    },
    {
      min: 6,
      max: 25,
      message: "用户名应该在6到25位",
      trigger: "blur"
    }
  ],

  password: [
    {
      required: true,
      message: "请输入您的密码",
      trigger: "blur"
    },
    {
      min: 6,
      max: 25,
      message: "用户名应该在6到25位",
      trigger: "blur"
    }
  ]
}

export { loginConfig, loginRules }
